.class public Lcom/xingbook/cinema/d/a;
.super Landroid/widget/FrameLayout;

# interfaces
.implements Lcom/xingbook/ui/overclass/c;


# instance fields
.field a:Ljava/lang/StringBuilder;

.field b:Ljava/util/Formatter;

.field private c:Landroid/widget/MediaController$MediaPlayerControl;

.field private d:Landroid/app/Activity;

.field private e:Landroid/view/View;

.field private f:Landroid/widget/SeekBar;

.field private g:Landroid/widget/TextView;

.field private h:Z

.field private i:Z

.field private j:Landroid/widget/ImageView;

.field private k:Landroid/widget/ImageView;

.field private l:Landroid/widget/TextView;

.field private m:Landroid/view/View$OnClickListener;

.field private n:Ljava/lang/String;

.field private o:Lcom/xingbook/park/ui/ad;

.field private p:I

.field private q:Ljava/lang/String;

.field private r:Landroid/os/Handler;

.field private s:Landroid/view/View$OnClickListener;

.field private t:Landroid/widget/SeekBar$OnSeekBarChangeListener;


# direct methods
.method public constructor <init>(Landroid/app/Activity;ILjava/lang/String;)V
    .locals 5

    const/4 v1, 0x0

    const/4 v2, 0x1

    invoke-direct {p0, p1, v2}, Lcom/xingbook/cinema/d/a;-><init>(Landroid/app/Activity;Z)V

    iput p2, p0, Lcom/xingbook/cinema/d/a;->p:I

    iput-object p3, p0, Lcom/xingbook/cinema/d/a;->q:Ljava/lang/String;

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->o:Lcom/xingbook/park/ui/ad;

    if-eqz v0, :cond_0

    new-instance v3, Lcom/xingbook/cinema/d/e;

    invoke-direct {v3, p0, p2}, Lcom/xingbook/cinema/d/e;-><init>(Lcom/xingbook/cinema/d/a;I)V

    invoke-virtual {v3, p3}, Lcom/xingbook/b/n;->a(Ljava/lang/String;)V

    const/16 v0, 0x62

    if-ne p2, v0, :cond_1

    move v0, v1

    :goto_0
    iget-object v4, p0, Lcom/xingbook/cinema/d/a;->o:Lcom/xingbook/park/ui/ad;

    invoke-virtual {v4, v3, v2, v0, v1}, Lcom/xingbook/park/ui/ad;->a(Lcom/xingbook/b/n;ZZZ)V

    :cond_0
    return-void

    :cond_1
    move v0, v2

    goto :goto_0
.end method

.method public constructor <init>(Landroid/app/Activity;Z)V
    .locals 2

    const/4 v1, 0x0

    invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/xingbook/cinema/d/a;->n:Ljava/lang/String;

    const/4 v0, -0x1

    iput v0, p0, Lcom/xingbook/cinema/d/a;->p:I

    iput-object v1, p0, Lcom/xingbook/cinema/d/a;->q:Ljava/lang/String;

    new-instance v0, Lcom/xingbook/cinema/d/b;

    invoke-direct {v0, p0}, Lcom/xingbook/cinema/d/b;-><init>(Lcom/xingbook/cinema/d/a;)V

    iput-object v0, p0, Lcom/xingbook/cinema/d/a;->r:Landroid/os/Handler;

    new-instance v0, Lcom/xingbook/cinema/d/c;

    invoke-direct {v0, p0}, Lcom/xingbook/cinema/d/c;-><init>(Lcom/xingbook/cinema/d/a;)V

    iput-object v0, p0, Lcom/xingbook/cinema/d/a;->s:Landroid/view/View$OnClickListener;

    new-instance v0, Lcom/xingbook/cinema/d/d;

    invoke-direct {v0, p0}, Lcom/xingbook/cinema/d/d;-><init>(Lcom/xingbook/cinema/d/a;)V

    iput-object v0, p0, Lcom/xingbook/cinema/d/a;->t:Landroid/widget/SeekBar$OnSeekBarChangeListener;

    iput-object p1, p0, Lcom/xingbook/cinema/d/a;->d:Landroid/app/Activity;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/cinema/d/a;)Landroid/widget/MediaController$MediaPlayerControl;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->c:Landroid/widget/MediaController$MediaPlayerControl;

    return-object v0
.end method

.method static synthetic a(Lcom/xingbook/cinema/d/a;I)Ljava/lang/String;
    .locals 1

    invoke-direct {p0, p1}, Lcom/xingbook/cinema/d/a;->b(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private a(Landroid/view/View;)V
    .locals 6

    const/4 v2, 0x1

    const/4 v1, 0x0

    new-instance v0, Lcom/xingbook/cinema/d/f;

    invoke-direct {v0, p0}, Lcom/xingbook/cinema/d/f;-><init>(Lcom/xingbook/cinema/d/a;)V

    const v3, 0x7f0a0271

    invoke-virtual {p1, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3, v0}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    const v3, 0x7f0a0274

    invoke-virtual {p1, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3, v0}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    const v0, 0x7f0a0275

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/xingbook/cinema/d/a;->j:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->j:Landroid/widget/ImageView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->j:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->requestFocus()Z

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->j:Landroid/widget/ImageView;

    iget-object v3, p0, Lcom/xingbook/cinema/d/a;->s:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :cond_0
    const v0, 0x7f0a0272

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/xingbook/cinema/d/a;->k:Landroid/widget/ImageView;

    new-instance v3, Lcom/xingbook/cinema/d/g;

    invoke-direct {v3, p0}, Lcom/xingbook/cinema/d/g;-><init>(Lcom/xingbook/cinema/d/a;)V

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->k:Landroid/widget/ImageView;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->k:Landroid/widget/ImageView;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :cond_1
    const v0, 0x7f0a0273

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/xingbook/cinema/d/a;->l:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->l:Landroid/widget/TextView;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->n:Ljava/lang/String;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->l:Landroid/widget/TextView;

    iget-object v4, p0, Lcom/xingbook/cinema/d/a;->n:Ljava/lang/String;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_2
    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->l:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :cond_3
    const v0, 0x7f0a0276

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/SeekBar;

    iput-object v0, p0, Lcom/xingbook/cinema/d/a;->f:Landroid/widget/SeekBar;

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->f:Landroid/widget/SeekBar;

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->f:Landroid/widget/SeekBar;

    instance-of v0, v0, Landroid/widget/SeekBar;

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->f:Landroid/widget/SeekBar;

    iget-object v3, p0, Lcom/xingbook/cinema/d/a;->t:Landroid/widget/SeekBar$OnSeekBarChangeListener;

    invoke-virtual {v0, v3}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

    :cond_4
    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->f:Landroid/widget/SeekBar;

    const/16 v3, 0x3e8

    invoke-virtual {v0, v3}, Landroid/widget/SeekBar;->setMax(I)V

    :cond_5
    const v0, 0x7f0a0277

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/xingbook/cinema/d/a;->g:Landroid/widget/TextView;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iput-object v0, p0, Lcom/xingbook/cinema/d/a;->a:Ljava/lang/StringBuilder;

    new-instance v0, Ljava/util/Formatter;

    iget-object v3, p0, Lcom/xingbook/cinema/d/a;->a:Ljava/lang/StringBuilder;

    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object v4

    invoke-direct {v0, v3, v4}, Ljava/util/Formatter;-><init>(Ljava/lang/Appendable;Ljava/util/Locale;)V

    iput-object v0, p0, Lcom/xingbook/cinema/d/a;->b:Ljava/util/Formatter;

    iget-object v3, p0, Lcom/xingbook/cinema/d/a;->d:Landroid/app/Activity;

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->e:Landroid/view/View;

    check-cast v0, Landroid/widget/RelativeLayout;

    iget-object v4, p0, Lcom/xingbook/cinema/d/a;->d:Landroid/app/Activity;

    invoke-static {v4}, Lcom/xingbook/c/n;->b(Landroid/app/Activity;)F

    move-result v4

    new-instance v5, Lcom/xingbook/cinema/d/h;

    invoke-direct {v5, p0}, Lcom/xingbook/cinema/d/h;-><init>(Lcom/xingbook/cinema/d/a;)V

    invoke-static {v3, v0, v4, v5}, Lcom/xingbook/park/ui/ad;->a(Landroid/content/Context;Landroid/widget/RelativeLayout;FLcom/xingbook/park/ui/ak;)Lcom/xingbook/park/ui/ad;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/cinema/d/a;->o:Lcom/xingbook/park/ui/ad;

    iget v0, p0, Lcom/xingbook/cinema/d/a;->p:I

    const/4 v3, -0x1

    if-eq v0, v3, :cond_6

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->q:Ljava/lang/String;

    if-eqz v0, :cond_6

    new-instance v3, Lcom/xingbook/cinema/d/i;

    iget v0, p0, Lcom/xingbook/cinema/d/a;->p:I

    invoke-direct {v3, p0, v0}, Lcom/xingbook/cinema/d/i;-><init>(Lcom/xingbook/cinema/d/a;I)V

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->q:Ljava/lang/String;

    invoke-virtual {v3, v0}, Lcom/xingbook/b/n;->a(Ljava/lang/String;)V

    iget v0, p0, Lcom/xingbook/cinema/d/a;->p:I

    const/16 v4, 0x62

    if-ne v0, v4, :cond_7

    move v0, v1

    :goto_0
    iget-object v4, p0, Lcom/xingbook/cinema/d/a;->o:Lcom/xingbook/park/ui/ad;

    invoke-virtual {v4, v3, v2, v0, v1}, Lcom/xingbook/park/ui/ad;->a(Lcom/xingbook/b/n;ZZZ)V

    :cond_6
    return-void

    :cond_7
    move v0, v2

    goto :goto_0
.end method

.method static synthetic a(Lcom/xingbook/cinema/d/a;Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/xingbook/cinema/d/a;->i:Z

    return-void
.end method

.method private b(I)Ljava/lang/String;
    .locals 9

    const/4 v8, 0x2

    const/4 v7, 0x1

    const/4 v6, 0x0

    div-int/lit16 v0, p1, 0x3e8

    rem-int/lit8 v1, v0, 0x3c

    div-int/lit8 v2, v0, 0x3c

    rem-int/lit8 v2, v2, 0x3c

    div-int/lit16 v0, v0, 0xe10

    iget-object v3, p0, Lcom/xingbook/cinema/d/a;->a:Ljava/lang/StringBuilder;

    invoke-virtual {v3, v6}, Ljava/lang/StringBuilder;->setLength(I)V

    if-lez v0, :cond_0

    iget-object v3, p0, Lcom/xingbook/cinema/d/a;->b:Ljava/util/Formatter;

    const-string v4, "%d:%02d:%02d"

    const/4 v5, 0x3

    new-array v5, v5, [Ljava/lang/Object;

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v5, v6

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v5, v7

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v5, v8

    invoke-virtual {v3, v4, v5}, Ljava/util/Formatter;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Formatter;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->b:Ljava/util/Formatter;

    const-string v3, "%02d:%02d"

    new-array v4, v8, [Ljava/lang/Object;

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    aput-object v2, v4, v6

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    aput-object v1, v4, v7

    invoke-virtual {v0, v3, v4}, Ljava/util/Formatter;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/Formatter;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method static synthetic b(Lcom/xingbook/cinema/d/a;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/xingbook/cinema/d/a;->i:Z

    return v0
.end method

.method static synthetic c(Lcom/xingbook/cinema/d/a;)I
    .locals 1

    invoke-direct {p0}, Lcom/xingbook/cinema/d/a;->e()I

    move-result v0

    return v0
.end method

.method static synthetic d(Lcom/xingbook/cinema/d/a;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/xingbook/cinema/d/a;->h:Z

    return v0
.end method

.method private e()I
    .locals 6

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->c:Landroid/widget/MediaController$MediaPlayerControl;

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/xingbook/cinema/d/a;->i:Z

    if-eqz v0, :cond_2

    :cond_0
    const/4 v0, 0x0

    :cond_1
    :goto_0
    return v0

    :cond_2
    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->c:Landroid/widget/MediaController$MediaPlayerControl;

    invoke-interface {v0}, Landroid/widget/MediaController$MediaPlayerControl;->getCurrentPosition()I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/cinema/d/a;->c:Landroid/widget/MediaController$MediaPlayerControl;

    invoke-interface {v1}, Landroid/widget/MediaController$MediaPlayerControl;->getDuration()I

    move-result v1

    iget-object v2, p0, Lcom/xingbook/cinema/d/a;->f:Landroid/widget/SeekBar;

    if-eqz v2, :cond_4

    if-lez v1, :cond_3

    const-wide/16 v2, 0x3e8

    int-to-long v4, v0

    mul-long/2addr v2, v4

    int-to-long v4, v1

    div-long/2addr v2, v4

    iget-object v4, p0, Lcom/xingbook/cinema/d/a;->f:Landroid/widget/SeekBar;

    long-to-int v2, v2

    invoke-virtual {v4, v2}, Landroid/widget/SeekBar;->setProgress(I)V

    :cond_3
    iget-object v2, p0, Lcom/xingbook/cinema/d/a;->c:Landroid/widget/MediaController$MediaPlayerControl;

    invoke-interface {v2}, Landroid/widget/MediaController$MediaPlayerControl;->getBufferPercentage()I

    move-result v2

    iget-object v3, p0, Lcom/xingbook/cinema/d/a;->f:Landroid/widget/SeekBar;

    mul-int/lit8 v2, v2, 0xa

    invoke-virtual {v3, v2}, Landroid/widget/SeekBar;->setSecondaryProgress(I)V

    :cond_4
    iget-object v2, p0, Lcom/xingbook/cinema/d/a;->g:Landroid/widget/TextView;

    if-eqz v2, :cond_1

    iget-object v2, p0, Lcom/xingbook/cinema/d/a;->g:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {p0, v0}, Lcom/xingbook/cinema/d/a;->b(I)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "/"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-direct {p0, v1}, Lcom/xingbook/cinema/d/a;->b(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method static synthetic e(Lcom/xingbook/cinema/d/a;)V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/cinema/d/a;->g()V

    return-void
.end method

.method static synthetic f(Lcom/xingbook/cinema/d/a;)Landroid/os/Handler;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->r:Landroid/os/Handler;

    return-object v0
.end method

.method private f()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->e:Landroid/view/View;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->j:Landroid/widget/ImageView;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->c:Landroid/widget/MediaController$MediaPlayerControl;

    invoke-interface {v0}, Landroid/widget/MediaController$MediaPlayerControl;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->j:Landroid/widget/ImageView;

    const v1, 0x7f020355

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->j:Landroid/widget/ImageView;

    const v1, 0x7f020359

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_0
.end method

.method static synthetic g(Lcom/xingbook/cinema/d/a;)Landroid/widget/TextView;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->g:Landroid/widget/TextView;

    return-object v0
.end method

.method private g()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->c:Landroid/widget/MediaController$MediaPlayerControl;

    invoke-interface {v0}, Landroid/widget/MediaController$MediaPlayerControl;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->c:Landroid/widget/MediaController$MediaPlayerControl;

    invoke-interface {v0}, Landroid/widget/MediaController$MediaPlayerControl;->pause()V

    :goto_0
    invoke-direct {p0}, Lcom/xingbook/cinema/d/a;->f()V

    return-void

    :cond_0
    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->c:Landroid/widget/MediaController$MediaPlayerControl;

    invoke-interface {v0}, Landroid/widget/MediaController$MediaPlayerControl;->start()V

    goto :goto_0
.end method

.method static synthetic h(Lcom/xingbook/cinema/d/a;)V
    .locals 0

    invoke-direct {p0}, Lcom/xingbook/cinema/d/a;->f()V

    return-void
.end method

.method static synthetic i(Lcom/xingbook/cinema/d/a;)Landroid/view/View$OnClickListener;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->m:Landroid/view/View$OnClickListener;

    return-object v0
.end method

.method static synthetic j(Lcom/xingbook/cinema/d/a;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->k:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic k(Lcom/xingbook/cinema/d/a;)Landroid/app/Activity;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->d:Landroid/app/Activity;

    return-object v0
.end method


# virtual methods
.method protected a()Landroid/view/View;
    .locals 3

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->d:Landroid/app/Activity;

    const-string v1, "layout_inflater"

    invoke-virtual {v0, v1}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    const v1, 0x7f030053

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/cinema/d/a;->e:Landroid/view/View;

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->e:Landroid/view/View;

    invoke-direct {p0, v0}, Lcom/xingbook/cinema/d/a;->a(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->e:Landroid/view/View;

    return-object v0
.end method

.method public a(I)V
    .locals 4

    const/4 v2, 0x1

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->r:Landroid/os/Handler;

    invoke-virtual {v0, v2}, Landroid/os/Handler;->removeMessages(I)V

    iget-boolean v0, p0, Lcom/xingbook/cinema/d/a;->h:Z

    if-nez v0, :cond_1

    invoke-direct {p0}, Lcom/xingbook/cinema/d/a;->e()I

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->j:Landroid/widget/ImageView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->j:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->requestFocus()Z

    :cond_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/cinema/d/a;->setVisibility(I)V

    iput-boolean v2, p0, Lcom/xingbook/cinema/d/a;->h:Z

    :cond_1
    invoke-direct {p0}, Lcom/xingbook/cinema/d/a;->f()V

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->r:Landroid/os/Handler;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->r:Landroid/os/Handler;

    invoke-virtual {v0, v2}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v0

    if-eqz p1, :cond_2

    iget-object v1, p0, Lcom/xingbook/cinema/d/a;->r:Landroid/os/Handler;

    int-to-long v2, p1

    invoke-virtual {v1, v0, v2, v3}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    :cond_2
    return-void
.end method

.method public b()V
    .locals 1

    const/16 v0, 0x1388

    invoke-virtual {p0, v0}, Lcom/xingbook/cinema/d/a;->a(I)V

    return-void
.end method

.method public c()Z
    .locals 1

    iget-boolean v0, p0, Lcom/xingbook/cinema/d/a;->h:Z

    return v0
.end method

.method public d()V
    .locals 2

    iget-boolean v0, p0, Lcom/xingbook/cinema/d/a;->h:Z

    if-eqz v0, :cond_0

    :try_start_0
    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->r:Landroid/os/Handler;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    const/16 v0, 0x8

    invoke-virtual {p0, v0}, Lcom/xingbook/cinema/d/a;->setVisibility(I)V
    :try_end_0
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/cinema/d/a;->h:Z

    :cond_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public dispatchKeyEvent(Landroid/view/KeyEvent;)Z
    .locals 5

    const/16 v4, 0x1388

    const/4 v0, 0x1

    invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v2

    invoke-virtual {p1}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v1

    if-nez v1, :cond_2

    invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I

    move-result v1

    if-nez v1, :cond_2

    move v1, v0

    :goto_0
    const/16 v3, 0x4f

    if-eq v2, v3, :cond_0

    const/16 v3, 0x55

    if-eq v2, v3, :cond_0

    const/16 v3, 0x3e

    if-ne v2, v3, :cond_3

    :cond_0
    if-eqz v1, :cond_1

    invoke-direct {p0}, Lcom/xingbook/cinema/d/a;->g()V

    invoke-virtual {p0, v4}, Lcom/xingbook/cinema/d/a;->a(I)V

    iget-object v1, p0, Lcom/xingbook/cinema/d/a;->j:Landroid/widget/ImageView;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/xingbook/cinema/d/a;->j:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/widget/ImageView;->requestFocus()Z

    :cond_1
    :goto_1
    return v0

    :cond_2
    const/4 v1, 0x0

    goto :goto_0

    :cond_3
    const/16 v3, 0x7e

    if-ne v2, v3, :cond_4

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/xingbook/cinema/d/a;->c:Landroid/widget/MediaController$MediaPlayerControl;

    invoke-interface {v1}, Landroid/widget/MediaController$MediaPlayerControl;->isPlaying()Z

    move-result v1

    if-nez v1, :cond_1

    iget-object v1, p0, Lcom/xingbook/cinema/d/a;->c:Landroid/widget/MediaController$MediaPlayerControl;

    invoke-interface {v1}, Landroid/widget/MediaController$MediaPlayerControl;->start()V

    invoke-direct {p0}, Lcom/xingbook/cinema/d/a;->f()V

    invoke-virtual {p0, v4}, Lcom/xingbook/cinema/d/a;->a(I)V

    goto :goto_1

    :cond_4
    const/16 v3, 0x56

    if-eq v2, v3, :cond_5

    const/16 v3, 0x7f

    if-ne v2, v3, :cond_6

    :cond_5
    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/xingbook/cinema/d/a;->c:Landroid/widget/MediaController$MediaPlayerControl;

    invoke-interface {v1}, Landroid/widget/MediaController$MediaPlayerControl;->isPlaying()Z

    move-result v1

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/xingbook/cinema/d/a;->c:Landroid/widget/MediaController$MediaPlayerControl;

    invoke-interface {v1}, Landroid/widget/MediaController$MediaPlayerControl;->pause()V

    invoke-direct {p0}, Lcom/xingbook/cinema/d/a;->f()V

    invoke-virtual {p0, v4}, Lcom/xingbook/cinema/d/a;->a(I)V

    goto :goto_1

    :cond_6
    const/16 v3, 0x19

    if-eq v2, v3, :cond_7

    const/16 v3, 0x18

    if-eq v2, v3, :cond_7

    const/16 v3, 0xa4

    if-eq v2, v3, :cond_7

    const/16 v3, 0x1b

    if-ne v2, v3, :cond_8

    :cond_7
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_1

    :cond_8
    const/4 v3, 0x4

    if-eq v2, v3, :cond_9

    const/16 v3, 0x52

    if-ne v2, v3, :cond_a

    :cond_9
    if-eqz v1, :cond_1

    invoke-virtual {p0}, Lcom/xingbook/cinema/d/a;->d()V

    goto :goto_1

    :cond_a
    invoke-virtual {p0, v4}, Lcom/xingbook/cinema/d/a;->a(I)V

    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_1
.end method

.method public onFinishInflate()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->e:Landroid/view/View;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->e:Landroid/view/View;

    invoke-direct {p0, v0}, Lcom/xingbook/cinema/d/a;->a(Landroid/view/View;)V

    :cond_0
    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p0}, Lcom/xingbook/cinema/d/a;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/cinema/d/a;->d()V

    :goto_0
    const/4 v0, 0x1

    :goto_1
    return v0

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/cinema/d/a;->b()V

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    goto :goto_1
.end method

.method public onTrackballEvent(Landroid/view/MotionEvent;)Z
    .locals 1

    const/16 v0, 0x1388

    invoke-virtual {p0, v0}, Lcom/xingbook/cinema/d/a;->a(I)V

    const/4 v0, 0x0

    return v0
.end method

.method public setAnchorView(Landroid/view/View;)V
    .locals 2

    const/4 v1, -0x1

    new-instance v0, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v0, v1, v1}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {p0}, Lcom/xingbook/cinema/d/a;->removeAllViews()V

    invoke-virtual {p0}, Lcom/xingbook/cinema/d/a;->a()Landroid/view/View;

    move-result-object v1

    invoke-virtual {p0, v1, v0}, Lcom/xingbook/cinema/d/a;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method public setBackListener(Landroid/view/View$OnClickListener;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/cinema/d/a;->m:Landroid/view/View$OnClickListener;

    return-void
.end method

.method public setEnabled(Z)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->j:Landroid/widget/ImageView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->j:Landroid/widget/ImageView;

    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setEnabled(Z)V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->f:Landroid/widget/SeekBar;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->f:Landroid/widget/SeekBar;

    invoke-virtual {v0, p1}, Landroid/widget/SeekBar;->setEnabled(Z)V

    :cond_1
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->setEnabled(Z)V

    return-void
.end method

.method public setMediaPlayer(Landroid/widget/MediaController$MediaPlayerControl;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/cinema/d/a;->c:Landroid/widget/MediaController$MediaPlayerControl;

    invoke-direct {p0}, Lcom/xingbook/cinema/d/a;->f()V

    return-void
.end method

.method public setName(Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->l:Landroid/widget/TextView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/cinema/d/a;->l:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    iput-object p1, p0, Lcom/xingbook/cinema/d/a;->n:Ljava/lang/String;

    return-void
.end method
